home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / DHTML - Window and Frames / modeless-window.izs < prev    next >
Text File  |  2005-09-02  |  2KB  |  62 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Modeless Window
  4. <!/TITLE>
  5.  
  6. <!BROWSER>IE5+<!/BROWSER>
  7.  
  8. <!DESCRIPTION>Modeless windows, a feature introduced in IE5, presents a window that stays active/visible on the user's screen until explicitly dismissed. A good way to display "announcements" or other content that demand attention. All other browsers will show a regular popup window instead. 
  9. <!/DESCRIPTION> 
  10.  
  11. <!CATEGORY>window and frames<!/CATEGORY>
  12.  
  13. <!SCRIPT>
  14. <!-- START OF SCRIPT -->
  15. <script>
  16.  
  17. //Modeless window script- By DynamicDrive.com
  18. //for full source code and terms of use
  19. //visit http://www.dynamicdrive.com
  20.  
  21. function modelesswin(url,mwidth,mheight){
  22. if (document.all&&window.print) //if ie5
  23. eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
  24. else
  25. eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
  26. }
  27.  
  28. //configure URL and window dimensions (width/height)
  29. modelesswin("http://yahoo.com",600,600)
  30.  
  31. //To load via link, use something like below:
  32. //<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>
  33. </script>
  34. <!-- END OF SCRIPT -->
  35. <!/SCRIPT>
  36.  
  37. <!PREVIEW>
  38. <!-- START OF SCRIPT -->
  39.  
  40. <script>
  41.  
  42. //Modeless window script- By DynamicDrive.com
  43. //for full source code and terms of use
  44. //visit http://www.dynamicdrive.com
  45.  
  46. function modelesswin(url,mwidth,mheight){
  47. if (document.all&&window.print) //if ie5
  48. eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
  49. else
  50. eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
  51. }
  52.  
  53. //configure URL and window dimensions (width/height)
  54. modelesswin("http://yahoo.com",600,600)
  55.  
  56. //To load via link, use something like below:
  57. //<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>
  58. </script>
  59. <!-- END OF SCRIPT -->
  60. <!/PREVIEW>
  61.  
  62. <!RELATED>NONE<!/RELATED>